<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Realm - Users</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">
    <link rel="shortcut icon" href="/AppStore/Public/assets/ico/favicon.html">
    <link href="/AppStore/Public/assets/css/bootstrap.css" rel="stylesheet">
    <link href="/AppStore/Public/assets/css/theme.css" rel="stylesheet">
    <link href="/AppStore/Public/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="/AppStore/Public/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="favicon.ico">
    <link href="http://fonts.useso.com/css?family=Open+Sans:400,700" rel="stylesheet" type="text/css">
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
  </head>
  <body>


    

      <!-- Side menu -->  
      

      <!-- Main window -->
      <div  id="users_page">

       

        <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-group"></i>
              <h5>Users</h5>
              <div class="widget-buttons">
                  <a href="#" data-title="Add User" data-toggle="modal" data-target="#example_modal"><i class="icon-plus"></i></a>
                  <a href="#" data-title="Collapse" data-collapsed="false" class="collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>  
            <div class="widget-body">
              <table id="users" class="table table-striped table-bordered dataTable">
                <thead>
                  <tr>
                    <th>头像</th>
        <th>用户名</th>
        <th>真实姓名</th>
        <th>邮箱</th>
        <th>电话</th>
        <th>状态</th>
        <th>审核信息</th>
        <th>明星作者</th>
        <th>首页推荐</th>
        <th>操作</th>
                  </tr>
                </thead>
                <tbody>
                  <?php if(is_array($users)): $i = 0; $__LIST__ = $users;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
        <td><img width="100px" src="/AppStore/Public/uploads/photo/<?php echo ($vo["photo"]); ?>" alt="图像不存在"></td>
        <td><?php echo ($vo['username']); ?></td>
        <td><?php echo ($vo['realname']); ?></td>
        <td><?php echo ($vo['email']); ?></td>
        <td><?php echo ($vo['tele']); ?></td>
        <td>
          <?php if($vo["state"] == 0): ?>禁用
          <?php elseif($vo["state"] == 1): ?>普通
          <?php else: ?>禁言<?php endif; ?>

        </td>
        <td><?php echo ($vo['verifyinfo']); ?></td>
        <td>
        <?php if($vo["isstar"] == 0): ?>不是
          <?php else: ?>是<?php endif; ?>
        </td>
        <td>
        <?php if($vo["isfirst"] == 0): ?>不是
          <?php else: ?>是<?php endif; ?>
        </td>
        <td>
        <div class="btn-group">
                        <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                        操作
                          <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu pull-right">
                          <li><a href="updateUserInfo?id=<?php echo ($vo["id"]); ?>"><i class="icon-envelope"></i> 修改</a></li>
                          <li><a href="del?id=<?php echo ($vo["id"]); ?>"><i class="icon-edit"></i> 删除</a></li>
                     
                          <li>

                          <?php if($vo["isstar"] == 0): ?><a href="setstar?id=<?php echo ($vo["id"]); ?>"><i class="icon-envelope"></i> 设置明星作者</a>
                          <?php else: ?><a href="unstar?id=<?php echo ($vo["id"]); ?>"><i class="icon-envelope"></i> 取消明星作者</a><?php endif; ?>

                          </li>
                          <li>
                          <?php if($vo["isfirst"] == 0): ?><a href="setfirst?id=<?php echo ($vo["id"]); ?>"><i class="icon-envelope"></i> 设置首页作者</a>
                          <?php else: ?><a href="unfirst?id=<?php echo ($vo["id"]); ?>"><i class="icon-envelope"></i> 取消首页作者</a><?php endif; ?>
                          </li>
                          <li><a href=""><i class="icon-envelope"></i> 
                          <?php if($vo["state"] == 0): ?>取消禁用
                          <?php else: ?>禁用<?php endif; ?>  
                          

                          </a></li>
                        </ul>
                      </div>



   </td>
      </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                </tbody>
              </table>
            </div> <!-- /widget-body -->
          </div> <!-- /widget -->
        </div> <!-- /row-fluid -->

      </div>
      <!-- /Main window -->

    </div><!--/.fluid-container-->
    </div><!-- wrap ends-->

<script type="text/javascript" src="/AppStore/Public/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='/AppStore/Public/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='/AppStore/Public/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.dataTables.min.js"></script>   
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.masonry.min.js"></script>   
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.imagesloaded.min.js"></script>   
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.facybox.js"></script>   
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.alertify.min.js"></script> 
    <script type="text/javascript" src="/AppStore/Public/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='/AppStore/Public/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='/AppStore/Public/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="/AppStore/Public/assets/js/realm.js"></script>